.class public Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;
.super Lcn/cheln/explorer/cpnt/adapter/CountAdapter;


# instance fields
.field private f:Lcn/cheln/support/a/b;

.field private g:Lcn/cheln/support/a/a;

.field private h:Ljava/util/List;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcn/cheln/support/adapter/d;)V
    .locals 2

    invoke-direct {p0, p1, p2}, Lcn/cheln/explorer/cpnt/adapter/CountAdapter;-><init>(Landroid/content/Context;Lcn/cheln/support/adapter/d;)V

    new-instance v0, Lcn/cheln/support/a/b;

    const-string v1, ""

    invoke-direct {v0, v1}, Lcn/cheln/support/a/b;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;->f:Lcn/cheln/support/a/b;

    return-void
.end method


# virtual methods
.method public final a(I)Lcn/cheln/explorer/beans/FileInfo;
    .locals 0

    invoke-virtual {p0, p1}, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcn/cheln/explorer/beans/FileInfo;

    return-object p0
.end method

.method protected final a(Landroid/view/View;ILjava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
    .locals 7

    iget-object v1, p0, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;->g:Lcn/cheln/support/a/a;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;->h:Ljava/util/List;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;->h:Ljava/util/List;

    invoke-interface {v1, p4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v2, p0, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;->g:Lcn/cheln/support/a/a;

    invoke-virtual {p5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    move-object v0, p3

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    move-object v1, v0

    invoke-virtual {v1}, Lcn/cheln/explorer/beans/FileInfo;->f()Ljava/lang/String;

    move-result-object v4

    move-object v0, p3

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    move-object v1, v0

    iget-object v1, v1, Lcn/cheln/explorer/beans/FileInfo;->sortKey:Ljava/lang/String;

    invoke-virtual {v2, v3, v4, v1}, Lcn/cheln/support/a/a;->a(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;)Landroid/text/SpannableStringBuilder;

    move-result-object v1

    move-object v6, v1

    :goto_0
    move-object v1, p0

    move-object v2, p1

    move v3, p2

    move-object v4, p3

    move-object v5, p4

    invoke-super/range {v1 .. v6}, Lcn/cheln/explorer/cpnt/adapter/CountAdapter;->a(Landroid/view/View;ILjava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V

    return-void

    :cond_0
    move-object v6, p5

    goto :goto_0
.end method

.method protected final a(Ljava/lang/Object;ILandroid/view/View;)V
    .locals 3

    if-eqz p1, :cond_1

    :try_start_0
    move-object v0, p1

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    move-object v1, v0

    iget-object v1, v1, Lcn/cheln/explorer/beans/FileInfo;->count:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    const/4 v2, -0x2

    if-ne v1, v2, :cond_0

    move-object v0, p1

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    move-object v1, v0

    const-string v2, ""

    iput-object v2, v1, Lcn/cheln/explorer/beans/FileInfo;->sizeText:Ljava/lang/String;

    :cond_0
    move-object v0, p1

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    move-object v1, v0

    invoke-virtual {v1}, Lcn/cheln/explorer/beans/FileInfo;->b()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    invoke-super {p0, p1, p2, p3}, Lcn/cheln/explorer/cpnt/adapter/CountAdapter;->a(Ljava/lang/Object;ILandroid/view/View;)V

    const v1, 0x7f080054

    invoke-virtual {p3, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    :cond_1
    return-void

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method

.method public final a(Ljava/lang/String;)V
    .locals 2

    new-instance v0, Lcn/cheln/support/a/b;

    invoke-direct {v0, p1}, Lcn/cheln/support/a/b;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;->f:Lcn/cheln/support/a/b;

    iget-object v0, p0, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;->g:Lcn/cheln/support/a/a;

    iget-object v1, p0, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;->f:Lcn/cheln/support/a/b;

    invoke-virtual {v0, v1}, Lcn/cheln/support/a/a;->a(Lcn/cheln/support/a/b;)V

    return-void
.end method

.method public final a(Ljava/lang/String;[Ljava/lang/String;I)V
    .locals 1

    :try_start_0
    new-instance v0, Lcn/cheln/support/a/a;

    invoke-direct {v0, p3}, Lcn/cheln/support/a/a;-><init>(I)V

    iput-object v0, p0, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;->g:Lcn/cheln/support/a/a;

    invoke-virtual {p0, p1}, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;->a(Ljava/lang/String;)V

    invoke-static {p2}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcn/cheln/explorer/cpnt/adapter/SearchAdapter;->h:Ljava/util/List;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method
